/************************************************
 * Author       :   XXY
 * Blog         :   https://www.cnblogs.com/jzyl
 * Email        :   1047185209@QQ.com
 * FileName     :   PathConfig.cs
 * CreateData   :   2023/4/28 12:52:37
 * UnityVersion :   2020.3.33f1c2
 * Description  :   路径配置设置
************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Main
{
    public static class PathConfig
    {
#if UNITY_EDITOR
        #region Editor
        /// <summary>
        /// Editor 热更程序集目录
        /// </summary>
        public static string HotfixPath { get; } = "Assets/Hotfix/";
        /// <summary>
        /// Editor 代码模板目录
        /// </summary>
        public static string TemplatesPath { get; } = "Assets/Editor/ScriptTemplates/";
        /// <summary>
        /// Editor 代码编译DLL程序集路径
        /// </summary>
        public static string CompilePath { get; } = "Assets/../Library/ScriptAssemblies/";
        /// <summary>
        /// 项目存放热更DLL路径
        /// </summary>
        public static string CodeDllPath { get; } = "Assets/Res/Code/";
        /// <summary>
        /// ComponentIDE 生成组件脚本存放目录
        /// </summary>
        public static string ComponentDataJsPath { get; } = "Assets/Hotfix/Scripts/Component/";
        /// <summary>
        /// 构建AB包生成路径
        /// </summary>
        public static string BuildAssetBundlePath { get; } = "Assets/../AssetBundle/";
        /// <summary>
        /// ScriptableObject 文件存放路径
        /// </summary>
        public static string ScriptableObjectPath { get; } = "Assets/Res/ScriptableObject/";
        /// <summary>
        /// 主框架代码路径
        /// </summary>
        public static string MainScriptPath { get; } = "Assets/Main/";
        /// <summary>
        /// 项目绝对路径
        /// </summary>
        public static string AbsolutePath => Application.dataPath.Substring(0, Application.dataPath.Length - 6);
        #endregion

        #region File
        /// <summary>
        /// Excel 配置文件路径
        /// </summary>
        public static string ExcelFilePath { get; } = "Assets/Res/Excel/Config.xlsx";
        /// <summary>
        /// 配置数据文件路径
        /// </summary>
        public static string ConfigDataFilePath { get; } = "Assets/Res/Config/ConfigData.prefab";
        /// <summary>
        /// 配置框架文件路径
        /// </summary>
        public static string ConfigFrameworkFilePath { get; } = "Assets/Res/Config/ConfigFramework.prefab";
        #endregion
#endif
        #region Player
        /// <summary>
        /// 本地存放AB包市场路径
        /// </summary>
        public static string LocalABStorePath => Application.persistentDataPath + "/";
        #endregion
    }
}